package cn.sunxyz.data.orm.domain;

import java.util.List;

/**
 * Created by yangrd on 2017/6/1.
 */
public interface CrudDatabase<T, ID> extends MyDataBase<T, ID> {
    T findOne(ID id);

    int save(T t);

    int delete(ID id);

    List<T> findAll();
}
